import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import 'rsuite/dist/styles/rsuite-default.css'
import App from './App';
import Main from './main/Main';
import * as serviceWorker from './serviceWorker';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import { Button } from 'rsuite';

class MyRoute extends React.Component{

    render(){
        return(
            <Router>
                <Route exact path="/" component={App} />
                <Route exact path="/main" component={Main} />
                <Route exact path="/user" component={Main} />
                <Route exact path="/bank" component={Main} />
            </Router>
        );
    }
}

ReactDOM.render(<MyRoute />, document.getElementById('root'));


// ReactDOM.render(<App />, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
